/**
 * @description index view 路由
 */
const router = require('koa-router')()
const { loginRedirect } = require('../../middlewares/loginChecks')

router.get('/', loginRedirect, async (ctx, next) => {
    await ctx.render('index', {})
})

router.get('/wx', async (ctx, next) => {
    console.log(ctx.request.query)
    ctx.body = ctx.request.query.echostr
})

module.exports = router